#ifndef ANIMATIONTEXTLINEEDIT_H
#define ANIMATIONTEXTLINEEDIT_H

#include "qlineedit.h"
#include <QWidget>

class AnimationTextLineEdit : public QLineEdit
{
    Q_OBJECT
public:
    explicit AnimationTextLineEdit(QWidget *parent = nullptr);

    QStringList textList() const;
    void setTextList(const QStringList &newTextList);

    QStringList generateAnimationTextList(QStringList newTextList);
    void showAnimationText();
signals:

private slots:
    void slotAniTimerout();

private:
    QTimer *m_aniTimer;
    QStringList m_textList;
    QStringList m_animationTextList;

    int m_currentIndex = 0;
};

#endif // ANIMATIONTEXTLINEEDIT_H
